package cn.tx.service.Impl;

import cn.tx.dao.TeDao;
import cn.tx.model.Te;
import cn.tx.service.TeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TeServicelmpl implements TeService {
    @Autowired
    TeDao teDao;

    @Override
    public List<Te> findAll(){
       return teDao.findAll();
    }

    @Override
    public int addTe(Te te){
        return teDao.addTe(te);
    }

    @Override
    public List<Te> findList(Map<String,Object> querymap){
        return teDao.findList(querymap);
    }

    @Override
    public int findTotal(Map<String,Object> querymap){
        return teDao.findTotal(querymap);
    }

    @Override
    public int updateTeById(Te te){
        return teDao.updateTeById(te);
    }

    @Override
    public int delete(String ids){
        return teDao.delete(ids);
    }
}
